<div style="padding:10px;">
	<h1>Struktur - Benutzer: {$user.user_name}</h1><br />
	
	<div>
		<div style="float:left;width:450px;">Projekt / Objekt </div>
		<div style="float:left;width:50px;text-align:center;">lesen </div>
		<div style="float:left;width:50px;text-align:center;">ändern</div>
		<div style="float:left;width:50px;text-align:center;">neu</div>
		<div style="float:left;width:50px;text-align:center;">löschen</div>
		<br style="clear:both;" />
	</div>
	<form id="user_{$user.user_id}_formUserAdministrationStructure"  action="" onsubmit="return false;">
		<input type="hidden" name="user_id" id="user_id" value="{$user.user_id}" />
		<div id="divUserAdministrationStructure" style="padding:4px;border:1px dotted #333;background:#f5f5f5;">
			{foreach name="projectloop" from=$projects item=project}

			<input type="hidden" name="projects[]" id="projects[]" value="{$project.project_id}" />

				<div style="padding:2px;;" onmouseover="this.style.backgroundColor='#EAEAEA';" onmouseout="this.style.backgroundColor='';">
					<div style="float:left;width:450px;position:relative;">
						<img src="img/admin-icon-templates.gif" border="0" align="left" style="margin-right:8px;" /> {$project.project_name}
						<br style="clear:both;" />
					</div>
					<div style="float:left;width:50px;text-align:center;position:relative;"><input type="checkbox" id="user_{$user.user_id}_project_id_{$project.project_id}_read" name="project_id_{$project.project_id}_read"  value="1" {if $project.permissions.read==1}checked="checked"{/if} /> <a href="javascript:void(0);" onclick="CMS.UserAdministration.ChangeUserPermissions('user_{$user.user_id}_project_id_{$project.project_id}','read',xajax.$('user_{$user.user_id}_project_id_{$project.project_id}_read').checked)"><img src="{$LIBRARY_WEB}/famfamfam/icons/arrow_undo.png" border="0" /></a></div>
					<div style="float:left;width:50px;text-align:center;position:relative;"><input type="checkbox" id="user_{$user.user_id}_project_id_{$project.project_id}_modify" name="project_id_{$project.project_id}_modify"   value="1" {if $project.permissions.modify==1}checked="checked"{/if} />  <a href="javascript:void(0);" onclick="CMS.UserAdministration.ChangeUserPermissions('user_{$user.user_id}_project_id_{$project.project_id}','modify',xajax.$('user_{$user.user_id}_project_id_{$project.project_id}_modify').checked)"><img src="{$LIBRARY_WEB}/famfamfam/icons/arrow_undo.png" border="0" /></a></div>
					<div style="float:left;width:50px;text-align:center;position:relative;"><input type="checkbox" id="user_{$user.user_id}_project_id_{$project.project_id}_new" name="project_id_{$project.project_id}_new"   value="1" {if $project.permissions.new==1}checked="checked"{/if} /> <a href="javascript:void(0);" onclick="CMS.UserAdministration.ChangeUserPermissions('user_{$user.user_id}_project_id_{$project.project_id}','new',xajax.$('user_{$user.user_id}_project_id_{$project.project_id}_new').checked)"><img src="{$LIBRARY_WEB}/famfamfam/icons/arrow_undo.png" border="0" /></a></div>
					<div style="float:left;width:50px;text-align:center;position:relative;"><input type="checkbox" id="user_{$user.user_id}_project_id_{$project.project_id}_delete" name="project_id_{$project.project_id}_delete"   value="1" {if $project.permissions.delete==1}checked="checked"{/if} /> <a href="javascript:void(0);" onclick="CMS.UserAdministration.ChangeUserPermissions('user_{$user.user_id}_project_id_{$project.project_id}','delete',xajax.$('user_{$user.user_id}_project_id_{$project.project_id}_delete').checked)"><img src="{$LIBRARY_WEB}/famfamfam/icons/arrow_undo.png" border="0" /></a></div>
					<br style="clear:both;" />
					<div style="border-bottom:1px solid #BBB;font-size:1px;margin-left:{$level}px;height:1px;">&nbsp;</div>
				</div>
				{include file="`$ccdsUserAdministration_DIR`structure.tpl" pages=$project.subpages level=0 prefix="user_`$user.user_id`_project_id_`$project.project_id`"}
			
			{/foreach}
			<div style="padding:8px;">
				<input type="button" onclick="{strip}{literal}
				xajax.request(
				{
					ccdsfun:'UserAdministrationUserStructureSave',
					ccdsclass:'ccdsUserAdministration'
				},
				{{/literal}
					parameters:[xajax.getFormValues('user_{$user.user_id}_formUserAdministrationStructure')]
				{literal}}
				);
				{/literal}{/strip}" value="speichern" class="submitbtn"  />
			</div>

		</div>
	</form>
</div>
